Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material/line-ripple

Package Overview
Dependencies
Maintainers
19
Versions
1663
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/line-ripple

The Material Components for the web line-ripple component

  • 5.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
805K
decreased by-0.37%
Maintainers
19
Weekly downloads
 
Created

What is @material/line-ripple?

@material/line-ripple is a package from the Material Components for the Web (MDC Web) library. It provides a line ripple component, which is typically used as an underline for text fields and other input elements. The line ripple is a visual effect that animates when the input element gains or loses focus, enhancing the user experience by providing a clear visual cue.

What are @material/line-ripple's main functionalities?

Initialize Line Ripple

This code initializes the line ripple component on an element with the class 'mdc-line-ripple'. The MDCLineRipple class is part of the @material/line-ripple package and is used to create and manage the line ripple effect.

const lineRipple = new MDCLineRipple(document.querySelector('.mdc-line-ripple'));

Activate Line Ripple

This code activates the line ripple effect, typically used when an input element gains focus. The activate method triggers the animation that makes the line ripple visible.

lineRipple.activate();

Deactivate Line Ripple

This code deactivates the line ripple effect, typically used when an input element loses focus. The deactivate method triggers the animation that hides the line ripple.

lineRipple.deactivate();

Set Ripple Center

This code sets the center of the ripple effect to a specific coordinate. The setRippleCenter method is useful for customizing the appearance of the ripple effect based on user interactions.

lineRipple.setRippleCenter(50);

Other packages similar to @material/line-ripple

Keywords

FAQs

Package last updated on 25 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc